import http from './common/js/http.js'
import util from './common/js/util.js'
import box from './common/js/box.js'
import message from './common/js/message.js'
import localStorage from './common/js/store.js'
import upload from './common/js/upload.js'

const helper = {
  install: function(Vue, options) {
    // 网络请求
    Vue.prototype.$http = http;
    // 工具
    Vue.prototype.$util = util;
    // 弹窗
    Vue.prototype.$box = box;
    // 提示
    Vue.prototype.$message = message;
    // 缓存
    Vue.prototype.$localStorage = localStorage;
    // 上传功能
    Vue.prototype.$upload = upload;
  }
}

export default helper
